﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
using VioletDevelopmentLaboratory.Net.Web.WebControls;
using VioletDevelopmentLaboratory.Net.Web.Configuration;

namespace VioletDevelopmentLaboratory.Net.Web.Component
{
	public abstract class BoardSearchSubPartBase : UserControl
	{
		private VBoardUserInfo currentUserInfo;
		public VBoardUserInfo CurrentUserInfo { get { return currentUserInfo; } }

		private Int32 pageSize;
		public Int32 PageSize { get { return pageSize; } }

		private Int32 pageButtonCount;
		public Int32 PageButtonCount { get { return pageButtonCount; } }

		protected override void OnInit(EventArgs e)
		{
			base.OnInit(e);

			currentUserInfo = (VBoardUserInfo)this.Page.Items["CurrentUserInfo"];
			pageSize = Convert.ToInt32(this.Page.Items["PageSize"]);
			pageButtonCount = Convert.ToInt32(this.Page.Items["PageButtonCount"]);
		}
	}
}
